extends Node2D

var peer : ENetMultiplayerPeer
func _ready() -> void:
	#1.向redis插入id（待开发）
	peer = ENetMultiplayerPeer.new()
	var result = peer.create_client("192.168.1.12",7001)
	if not is_same(result,OK) :
		print("连接错误")
		return
	var peer_id = peer.get_unique_id()
	multiplayer.multiplayer_peer = peer
	
